Skip to content

Replace calls to setDefinition() by register() #7861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2017

Conversation

GuilhemN
Copy link
Contributor

Using setDefinition is very verbose and actually less readable imo, so I think we should push using ContainerBuilder::register().

@xabbuh
Copy link
Member

xabbuh commented May 4, 2017

Thank you Guilhem.

@xabbuh xabbuh merged commit 879347c into symfony:2.7 May 4, 2017
xabbuh added a commit that referenced this pull request May 4, 2017
This PR was merged into the 2.7 branch.

Discussion
----------

Replace calls to setDefinition() by register()

Using `setDefinition`  is very verbose and actually less readable imo, so I think we should push using `ContainerBuilder::register()`.

Commits
-------

879347c Replace calls to setDefinition() by register()
@GuilhemN GuilhemN deleted the DEFINITION branch May 4, 2017 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants